/**
 * Copyright (C) 2012 The SkyTvOS Project
 *
 * Version     Date           Author
 * ─────────────────────────────────────
 *           2015-2-14         yellowlgx
 *
 */

package com.skyworth.ui.menu;

import java.util.List;

/**
 * @ClassName SkyMenuAdapter
 * @Description TODO (write something)
 * @author yellowlgx
 * @date 2015-2-14
 * @version TODO (write something)
 */
public class SkyMenuAdapter
{
    private List<SkyMenuData> mDatas;

    public SkyMenuAdapter(List<SkyMenuData> datas)
    {
        mDatas = datas;
    }

    public SkyMenuData getMenuItemData(int position)
    {
        return mDatas.get(position);
    }

    public Object getItem(int position)
    {
        return mDatas.get(position);
    }

    public int getCount()
    {
        return mDatas == null ? 0 : mDatas.size();
    }
}
